import { createApp } from 'vue'
import App from './App.vue'
import Vant from 'vant';
import 'vant/lib/index.css';
import router from "./router";
import store from "./store";
// 引入自定义指令
import directivePlugin from "./plugins/directives";
// 引入自定义全局组件
import globalComponents from "./plugins/globalComponents";

// 初始化store
import initStore from "./store/init";


let app = createApp(App);
app.use(directivePlugin);
app.use(router);
app.use(globalComponents);
app.use(store);
app.use(Vant);
app.mount('#app');

initStore(store);